﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="courseWork.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Static/css/mylogin.css" rel="stylesheet" />
    <link href="Static/css/bootstrap.min.css" rel="stylesheet" />
    <title></title>

</head>
<body>
    <div id="middle" class="shadow-lg p-3 mb-5 bg-white rounded">
        <h1 class="text-secondary">登录</h1>
        <div class="inMiddle">
            <form runat="server" method="post">
                <div class="form-group">
                    <label for="account">账号</label>
                    <asp:TextBox ID="account" runat="server" CssClass="form-control"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="accountValidator" runat="server" ErrorMessage="请输入你的账号" CssClass="form-text text-muted" ControlToValidate="account">

                    </asp:RequiredFieldValidator>
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <asp:TextBox ID="password" runat="server" CssClass="form-control"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="passwordValidator1" runat="server" ErrorMessage="请输入你的密码" CssClass="form-text text-muted" ControlToValidate="password"> </asp:RequiredFieldValidator>
                </div>
                <asp:Button ID="MyLogin" runat="server" Text="Login" CssClass="btn btn-primary btn-block" OnClick="MyLogin_Click" />

                <a href="Register.aspx"><small id="emailHelp" class="form-text text-muted">没有账号？请注册</small></a>
            </form>
        </div>
    </div>

</body>
</html>
